class AddLossesToTroops < ActiveRecord::Migration
  def self.up
    drop_table :losses
    add_column :troops, :losses, :integer, :default => 0
  end

  def self.down
    remove_column :troops, :losses
    create_table :losses do |t|
      t.references :unit
      t.integer :menge
      t.references :army

      t.timestamps
    end
  end
end
